package com.itheima.a01mycollection;

import java.util.ArrayList;
import java.util.Collection;

public class A01_CollecionDemo2 {
    public static void main(String[] args) {
        Collection<Student> coll=new ArrayList<>();

        Student s1=new Student("zhangsan",23);

        coll.add(s1);

        Student s2=new Student("zhangsan",23);

        System.out.println(coll.contains(s2));
    }
}
